The spelling languages available in the current recognition engine configuration can be enumerated with the IG_REC_spelling_language_first_get() / IG_REC_spelling_language_next_get() function pair and the IG_REC_vertical_dict_available_count_get(), IG_REC_vertical_dict_available_desc_len_get(), IG_REC_vertical_dict_available_desc_get() functions. The application can specify a language setting as the spelling language, valid for the next page or pages with the IG_REC_spelling_language_set() subroutine.
Additionally, vertical language checking can also be activated when one of the Vertical dictionaries (e.g., "Dutch Legal Dictionary") has been set through the IG_REC_vertical_dict_enable () call.
Configuring the Checking Subsystem to Use English Spell Checking
C | Copy Code |
---|---|
AT_ERRCOUNT nErrCount; nErrCount = IG_REC_spelling_is_enabled_set(TRUE); nErrCount = IG_REC_correction_is_enabled_set(TRUE); nErrCount = IG_REC_spelling_language_set(IG_REC_LANG_ENG); |
When the spelling language is set to IG_REC_LANG_NO, or when it specifies a language for which there is no Language dictionary, the language checking will not be activated for the zones of the page.
Spell Checking with Automatic Spell Language Selection
In the special (default) case, when the specified Spelling language is set to IG_REC_LANG_AUTO, the language checking will be performed based on the recognition language selection ( IG_REC_languages_set() ) as follows:
- If the recognition language selection is empty, there won't be language checking.
- If one recognition language has been set, that language will be automatically selected for language checking, assuming that the appropriate Language dictionary is available.
- If two or more languages are selected for recognition, language checking will be done for all selected languages for which a Language dictionary is available.